from django.urls import path
from rest_framework.routers import SimpleRouter

from main.report.views import metadata, interface, dbquery

router = SimpleRouter()
router.register(r'interface', interface.InterfaceView, basename='interface')
router.register(r'metadata/table', metadata.TableView, basename='table')
router.register(r'metadata/tableColumn', metadata.TableColumnView, basename='tableColumn')
router.register(r'metadata/mapping', metadata.MappingView, basename='mapping')
router.register(r'metadata/datasource', metadata.DataSourceView, basename='datasource')

urlpatterns = [
    # path('metadata/database', metadata.DatabaseView.as_view()),
    # path('data/query', dbquery.DbQueryView.as_view()),
]

urlpatterns += router.urls
